package com.yyg.usecase.spi;

import com.yyg.usecase.spi.demo.ISayHello;
import com.yyg.usecase.spi.demo.ISayHelloService;

public class ServiceLoaderTest {
    public static void main(String[] args) {
        ISayHello service = ISayHelloService.getService();
        service.sayHello();
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
}
